package com.luck.emp.entity;

import java.util.Date;

import com.luck.org.entity.VDepartment;
import com.luck.org.entity.VUser;
import com.luck.pf.util.DateUtil;
import com.luck.pf.util.FormateUtil;

/**
 * 说明:ENEITY类 Copyright: Copyright (c) 2011 深圳**科技
 * 
 * @author
 * 
 */
public class EmpTPayment implements java.io.Serializable {
	Long id;
	/**
	 * 缴费机构
	 **/
	Long deptId;
	VDepartment dept;
	/**
	 * 缴费金额
	 **/
	Double money;
	/**
	 * 缴费人
	 **/
	String payers;
	/**
	 * 联络电话
	 **/
	String tel;
	/**
	 * 有效期
	 **/
	Date validDate;
	/**
	 * 操作人
	 **/
	VUser createUser;
	/**
	 * 创建时间
	 **/
	Date createDate;
	String note;

	public EmpTPayment() {
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getDeptId() {
		return this.deptId;
	}

	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}

	public Double getMoney() {
		return this.money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getPayers() {
		return this.payers;
	}

	public void setPayers(String payers) {
		this.payers = payers;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Date getValidDate() {
		return this.validDate;
	}

	public void setValidDate(Date validDate) {
		this.validDate = validDate;
	}

	public VDepartment getDept() {
		return dept;
	}

	public void setDept(VDepartment dept) {
		this.dept = dept;
	}

	public VUser getCreateUser() {
		return createUser;
	}

	public void setCreateUser(VUser createUser) {
		this.createUser = createUser;
	}

	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	public String getMoneyStr() {
		return FormateUtil.getInstance().formateDouble(this.money);
	}

	public String getValidDateStr() {
		return DateUtil.dateToString(this.validDate, DateUtil.patternA);
	}

	public String getCreateDateStr() {
		return DateUtil.dateToString(this.createDate, DateUtil.patternE);
	}

}